package com.ruoyi.eam.doman;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 入库信息对象 eam_stock
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
public class EamStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long stockId;

    /** 入库单号 */
    @Excel(name = "入库单号")
    private String stockcode;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockTime;

    /** 入库类型 */
    @Excel(name = "入库类型")
    private Long stockType;

    public Long getStockType() {
        return stockType;
    }

    public void setStockType(Long stockType) {
        this.stockType = stockType;
    }

    /** 经办人 */
    @Excel(name = "经办人")
    private Long handlePerson;

    public void setHandlePerson(Long handlePerson) {
        this.handlePerson = handlePerson;
    }

    public Long getHandlePerson() {
        return handlePerson;
    }

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    /** 审核类型 */
    @Excel(name = "审核类型")
    private Long auditType;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditPerson;

    @Excel(name = "审核人")
    private String auditPersonName;

    private String auditDeptName;


    /** 审核人 */
    @Excel(name = "资产编码")
    private String assetCode;

    @Excel(name = "资产编码")
    private Long assetId;

    public String getAuditDeptName() {
        return auditDeptName;
    }

    public void setAuditDeptName(String auditDeptName) {
        this.auditDeptName = auditDeptName;
    }

    public String getAuditPersonName() {
        return auditPersonName;
    }

    public void setAuditPersonName(String auditPersonName) {
        this.auditPersonName = auditPersonName;
    }

    public Long getAssetId() {
        return assetId;
    }

    public void setAssetId(Long assetId) {
        this.assetId = assetId;
    }

    private List<EamAsset> eamAssets;

    public List<EamAsset> getEamAssets() {
        return eamAssets;
    }

    public void setEamAssets(List<EamAsset> eamAssets) {
        this.eamAssets = eamAssets;
    }

    /** 审核原因 */
    @Excel(name = "审核原因")
    private String auditReason;

    public String getAuditReason() {
        return auditReason;
    }

    public void setAuditReason(String auditReason) {
        this.auditReason = auditReason;
    }

    public String getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(String assetCode) {
        this.assetCode = assetCode;
    }

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    @Excel(name = "删除状态")
    private Long isDel;

    public Long getIsDel() {
        return isDel;
    }

    public void setIsDel(Long isDel) {
        this.isDel = isDel;
    }

    private EamAsset eamAsset;

    private EamType eamType;

    private EamLocation eamLocation;

    private User user;

    private Dept dept;


    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public EamLocation getEamLocation() {
        return eamLocation;
    }

    public void setEamLocation(EamLocation eamLocation) {
        this.eamLocation = eamLocation;
    }

    public EamType getEamType() {
        return eamType;
    }

    public void setEamType(EamType eamType) {
        this.eamType = eamType;
    }

    public EamAsset getEamAsset() {
        return eamAsset;
    }

    public void setEamAsset(EamAsset eamAsset) {
        this.eamAsset = eamAsset;
    }

    public void setStockId(Long stockId)
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setStockcode(String stockcode) 
    {
        this.stockcode = stockcode;
    }

    public String getStockcode() 
    {
        return stockcode;
    }
    public void setStockTime(Date stockTime) 
    {
        this.stockTime = stockTime;
    }

    public Date getStockTime() 
    {
        return stockTime;
    }

    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setAuditType(Long auditType) 
    {
        this.auditType = auditType;
    }

    public Long getAuditType() 
    {
        return auditType;
    }
    public void setAuditPerson(Long auditPerson) 
    {
        this.auditPerson = auditPerson;
    }

    public Long getAuditPerson() 
    {
        return auditPerson;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }

    @Override
    public String toString() {
        return "EamStock{" +
                "stockId=" + stockId +
                ", stockcode='" + stockcode + '\'' +
                ", stockTime=" + stockTime +
                ", stockType=" + stockType +
                ", handlePerson='" + handlePerson + '\'' +
                ", creator=" + creator +
                ", auditType=" + auditType +
                ", auditPerson=" + auditPerson +
                ", auditTime=" + auditTime +
                ", eamAsset=" + eamAsset +
                ", eamType=" + eamType +
                ", assetCode=" + assetCode +
                ", auditReason=" + auditReason +
                ", isDel=" + isDel +
                '}';
    }


}
